<template>
  <div class="shopHead">
    <table>
      <!-- 头部 -->
      <thead>
        <tr>
          <th class="title">商品名称</th>
          <th>商品单价</th>
          <th>购买数量</th>
          <th>小计</th>
          <th>商品操作</th>
        </tr>
      </thead>
      <shop-item class="item"></shop-item>
    </table>
  </div>
</template>

<script>
import ShopItem from "../childShopCart/ShopItem";
export default {
  name: "ShopHead",
  components: {
    ShopItem
  }
};
</script>

<style scoped>
.shopHead {
  position: relative;
}

.item {
  margin: 0 auto;
}

table {
  margin-bottom: 74px;
  /* margin: 0 auto; */
  position: absolute;
  left: 80px;
}
/* 头部 */
thead {
  display: block;
  height: 44px;
  line-height: 44px;
  border-bottom: solid 1px #000;
}
/* .checkbox {
  width: 80px;
} */
.title {
  width: 500px;
}
th {
  width: 200px;
}
</style>

